import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class Test12 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue=new ArrayBlockingQueue<>(100);
        queue.put("aaa");
        String elem=queue.take();
        System.out.println("elem是"+elem);
        elem=queue.take();
        System.out.println("elem是"+elem);
    }
}
